 const columns = {
  "url": "/api/table",
  "params":{},
  "checkBox":true,
  "operation": [
    { "name": "查看", "type": "disabled","drawerWidth": "50"},
    { "name": "查看", "type": "disabled","drawerWidth": "50"}
  ],
  "searchListType": "complexQuery",
  "searchList": [
    { "title": "关键字", "type": "input", "key": "keyword", "placeholder": "请输入关键字" }
  ],
  "tableColumns":(props: any,tableProps: any ) => {
    let current:number=tableProps.pagination.current;
    let pageSize:number=tableProps.pagination.pageSize;
    return [
      {
        title: '序号',
        dataIndex: 'a',
        key: 'a',
        align: 'center',
        className: 'no-flex',
        width: "10%",
        render: (text: any, record: { eventTypes: string; }, index: any) => {
          return (current-1)*pageSize+(index+1)
        },
      },
      {
        title: '出入口名称',
        dataIndex: 'title',
        key: 'title',
        className: 'no-flex',
        width: "20%",
      },
      {
        title: '绑定二维码识别器编号',
        key: 'qrCode',
        dataIndex: 'qrCode',
        className: 'no-flex',
        width: "20%",
      },
      {
        title: '绑定道闸编号',
        key: 'gateCode',
        dataIndex: 'gateCode',
        className: 'no-flex',
        width: "15%",
      },
      {
        title: '绑定摄像头编号',
        key: 'cameraCode',
        dataIndex: 'cameraCode',
        className: 'no-flex',
        width: "15%",
      },
    ];
  }
}
export default columns